package top.zhangjianyong.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Collection;
import java.util.List;
import top.zhangjianyong.blog.entity.po.Role;
import top.zhangjianyong.blog.entity.po.UserRole;

/**
 * 用户角色Service
 *
 * @author zhangjianyong
 * @since 2024/7/25 上午10:17
 */
public interface UserRoleService extends IService<UserRole> {
  boolean remove(Long id, Collection<Long> roleIds);

  boolean save(Long id, Collection<Long> roleIds);

  List<Role> listByUserId(Long id);

  boolean removeByUser(Long userId);

  void removeByRole(Long roleId);
}
